package com.kye.express.business.jd.shop.model;

import android.os.Parcel;
import android.os.Parcelable;

import com.kye.model.bean.integral.IntegralUserBean;

/**
 * @author : Joe
 * @version : 1.0
 * @editor : Joe
 * @created : 29/01/2018
 * @updated : 29/01/2018
 * @description : <Description>
 * @update_reason : <UpdateReason>
 *
 *     京东商城积分信息
 */

public class JDIntegralModel implements Parcelable {

    private IntegralUserBean integralUserBean;

    public IntegralUserBean getIntegralUserBean() {
        return integralUserBean;
    }

    public void setIntegralUserBean(IntegralUserBean integralUserBean) {
        this.integralUserBean = integralUserBean;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeParcelable(this.integralUserBean, flags);
    }

    public JDIntegralModel() {
    }

    protected JDIntegralModel(Parcel in) {
        this.integralUserBean = in.readParcelable(IntegralUserBean.class.getClassLoader());
    }

    public static final Parcelable.Creator<JDIntegralModel> CREATOR = new Parcelable.Creator<JDIntegralModel>() {
        @Override
        public JDIntegralModel createFromParcel(Parcel source) {
            return new JDIntegralModel(source);
        }

        @Override
        public JDIntegralModel[] newArray(int size) {
            return new JDIntegralModel[size];
        }
    };
}
